package com.example.demo;

import com.example.demo.db.entity.RateEntity;
import com.example.demo.db.mapper.RateMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import javax.annotation.PostConstruct;

/**
 * 入口
 *
 * @author wuhong-016
 * @version v1.0.0
 * @time: 2021/8/29 22:08
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class DemoApplication {

	@Autowired
	private RateMapper rateMapper;

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}

	@PostConstruct
	public void test(){
		RateEntity rateEntity = rateMapper.selectById("");
		System.out.println(rateEntity);
	}



}
